package com.clarence.dada.core.redis.operator.type;

import com.clarence.dada.core.auth.entity.LoginUser;
import com.clarence.dada.core.redis.constants.RedisConstants;
import com.clarence.dada.core.redis.operator.AbstractRedisCacheOperator;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * 基于redis的登录用户缓存
 *
 * @author fengshuonan
 * @since 2020/12/24 19:16
 */
public class RedisLoginUserCache extends AbstractRedisCacheOperator<LoginUser> {

    public RedisLoginUserCache(RedisTemplate<String, LoginUser> redisTemplate) {
        super(redisTemplate);
    }

    @Override
    public String getCommonKeyPrefix() {
        return RedisConstants.LOGGED_TOKEN_PREFIX;
    }

}
